package com.busi.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * ******************  类说明  *********************
 * class       :  SettleProducts
 * @author     :  wkl
 * @version    :  1.0  
 * description :  商品溯源记录
 * @see        :                        
 * ***********************************************
 */
public class SettleProducts extends BaseModel implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7448604382603324674L;
	
	private   String   mid;     //主键，商品序号
	private   String   trace;   //消费明细流水号
	private   String   merid;   //商户编号
	private   String   mername; //商户名称
	private   Short    mertype; //商户类型  0供货商   1配送商
	private   String   categoryid; //商品类型
	private   String   productid;  //商品id
	private   String   goodsname;  //商品名称
	private   String   itembrand;    //商品品牌
	private   String   centerpic;  //中图
	private   BigDecimal  price;   //商品单价
	private   BigDecimal  points;  //商品单价积分
	private   BigDecimal  amount;  //商品总价值
	private   BigDecimal  cmccPoints; //移动使用积分
	private   String    paytype;   //支付方式
	private   String    pointuseinfo;  //list
	private   Timestamp    modtime;  //修改时间
	private   Timestamp  intime;    //录入时间
	
	private   BigDecimal   realprice;//实付金额
	private   BigDecimal   realpoints;// 实付积分
	
	private  String   itemno;  //商品序号
	
	private String realTotal; // 实付总金额
	private String total; //商品单价拼接 eg: 1元+一分
	private Integer goodsnum;//商品数 全部是1
	
	
	public Integer getGoodsnum() {
		return goodsnum;
	}
	public void setGoodsnum(Integer goodsnum) {
		this.goodsnum = goodsnum;
	}
	public String getTotal() {
		return total;
	}
	public void setTotal(String total) {
		this.total = total;
	}
	public String getRealTotal() {
		return realTotal;
	}
	public void setRealTotal(String realTotal) {
		this.realTotal = realTotal;
	}
	
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public String getTrace() {
		return trace;
	}
	public void setTrace(String trace) {
		this.trace = trace;
	}
	public String getMerid() {
		return merid;
	}
	public void setMerid(String merid) {
		this.merid = merid;
	}
	public String getMername() {
		return mername;
	}
	public void setMername(String mername) {
		this.mername = mername;
	}
	public Short getMertype() {
		return mertype;
	}
	public void setMertype(Short mertype) {
		this.mertype = mertype;
	}
	public String getCategoryid() {
		return categoryid;
	}
	public void setCategoryid(String categoryid) {
		this.categoryid = categoryid;
	}
	public String getProductid() {
		return productid;
	}
	public void setProductid(String productid) {
		this.productid = productid;
	}
	public String getGoodsname() {
		return goodsname;
	}
	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}
	
	public String getItembrand() {
		return itembrand;
	}
	public void setItembrand(String itembrand) {
		this.itembrand = itembrand;
	}
	public String getCenterpic() {
		return centerpic;
	}
	public void setCenterpic(String centerpic) {
		this.centerpic = centerpic;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public BigDecimal getPoints() {
		return points;
	}
	public void setPoints(BigDecimal points) {
		this.points = points;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public BigDecimal getCmccPoints() {
		return cmccPoints;
	}
	public void setCmccPoints(BigDecimal cmccPoints) {
		this.cmccPoints = cmccPoints;
	}
	public String getPaytype() {
		return paytype;
	}
	public void setPaytype(String paytype) {
		this.paytype = paytype;
	}
	public String getPointuseinfo() {
		return pointuseinfo;
	}
	public void setPointuseinfo(String pointuseinfo) {
		this.pointuseinfo = pointuseinfo;
	}
	public Timestamp getModtime() {
		return modtime;
	}
	public void setModtime(Timestamp modtime) {
		this.modtime = modtime;
	}
	public Timestamp getIntime() {
		return intime;
	}
	public void setIntime(Timestamp intime) {
		this.intime = intime;
	}
	
	public BigDecimal getRealprice() {
		return realprice;
	}
	public void setRealprice(BigDecimal realprice) {
		this.realprice = realprice;
	}
	public BigDecimal getRealpoints() {
		return realpoints;
	}
	public void setRealpoints(BigDecimal realpoints) {
		this.realpoints = realpoints;
	}
	
	public String getItemno() {
		return itemno;
	}
	public void setItemno(String itemno) {
		this.itemno = itemno;
	}

	@Override
	public String toString() {
		return "SettleProducts [mid=" + mid + ", trace=" + trace + ", merid="
				+ merid + ", mername=" + mername + ", mertype=" + mertype
				+ ", categoryid=" + categoryid + ", productid=" + productid
				+ ", goodsname=" + goodsname + ", itembrand=" + itembrand
				+ ", centerpic=" + centerpic + ", price=" + price + ", points="
				+ points + ", amount=" + amount + ", cmccPoints=" + cmccPoints
				+ ", paytype=" + paytype + ", pointuseinfo=" + pointuseinfo
				+ ", modtime=" + modtime + ", intime=" + intime
				+ ", realprice=" + realprice + ", realpoints=" + realpoints
				+ ", itemno=" + itemno + "]";
	}
}
